import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class RegisterDto {
  @ApiProperty({ description: '用户名', example: 'john_doe' })
  username: string;

  @ApiProperty({ description: '密码', example: '123456' })
  password: string;

  @ApiPropertyOptional({ description: '昵称', example: 'John' })
  nickname?: string;
}
